package cn.tedu.notice.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Notice {

    @ApiModelProperty(value = "公告id")
    private Integer id;

    @ApiModelProperty(value = "公告标题")
    private String title;

    @ApiModelProperty(value = "公告内容")
    private String content;

    @ApiModelProperty(value = "公告状态 1-启用(默认) 0-禁用")
    private String status;

    @ApiModelProperty(value = "公告等级 0-次要 1-一般(默认) 2-重要 3-紧急")
    private String level;

    @ApiModelProperty(value = "发布人id")
    private Integer createPeopleId;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "公告创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "公告更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "公告逻辑删除 0-不删除 1-逻辑删除")
    private String delFlag;
}
